Optimizing Logic Programs with Finite Domain Constraints

نویسنده

  • Nai-Wei Lin
چکیده

Combinatorial problems are often speciied declaratively in logic programs with constraints over nite domains. This paper presents several program transformation and optimization techniques for improving the performance of the class of programs with nite-domain constraints. The techniques include planning the evaluation order of body goals, reducing the domain of variables, planning the instantiation order of variable values, and controlling process granularity and scheduling processes among processors in parallel or distributed systems. The techniques are based on the information about the number of solutions of combinatorial problems. Since the decision versions of many combinatorial problems are NP-complete, if P 6 = NP, there is no polynomial time algorithm for computing the number of solutions for combinatorial problems. This paper presents a simple greedy approximation algorithm for estimating the number of solutions for combinatorial problems over nite domains. Based on this simple algorithm, a class of exible polynomial time algorithms is also developed.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Specialising Finite Domain Programs Using Polyhedra

A procedure is described for tightening domain constraints of finite domain logic programs by applying a static analysis based on convex polyhedra. Individual finite domain constraints are over-approximated by polyhedra to describe the solution space over n integer variables as an n dimensional polyhedron. This polyhedron is then approximated, using projection, as an n dimensional bounding box ...

متن کامل

Integration of Finite Domain Constraints

A constraint programming system usually consists of two main components: a modelling language used to describe a constraint satisfaction problem and a constraint solver searching for solutions to the given problem by applying specific algorithms. As constraint programming and functional logic languages share some common features, like computing with logic variables or the use of backtracking fo...

متن کامل

Specialising Fininte Domain Programs Using Polyhedra

A procedure is described for tightening domain constraints of finite domain logic programs by applying a static analysis based on convex polyhedra. Individual finite domain constraints are over-approximated by polyhedra to describe the solution space over n integer variables as an n dimensional polyhedron. This polyhedron is then approximated, using projection, as an n dimensional bounding box ...

متن کامل

Integration of Finite Domain Constraints in KiCS2

A constraint programming system usually consists of two main components: a modelling language used to describe a constraint satisfaction problem and a constraint solver searching for solutions to the given problem by applying specific algorithms. As constraint programming and functional logic languages share some common features, like computing with logic variables or the use of backtracking fo...

متن کامل

Efficient Genetic Based Methods for Optimizing the Reversible and Quantum Logic Circuits

Various synthesis methods have been proposed in the literature for reversible and quantum logic circuits. However, there are few algorithms to optimize an existing circuit with multiple constraints simultaneously. In this paper, some heuristics in genetic algorithms (GA) to optimize a given circuit in terms of quantum cost, number of gates, location of garbage outputs, and delay, are proposed. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994